extends Control



func _on_Button_pressed():
	# 显示"打开文件"对话框，并返回单个文件名
	var dlg = myDialog.fopenBox("open file","res://",$".",["*.png;PNGImages","*.gd;GDScript Files"],"dlg_file_selected")
	
	pass # Replace with function body.

#  File_Open_dlg信号处理
func dlg_file_selected(path:String):
	print(path)

func _on_Button2_pressed():
	myDialog.msgBox("message","bala...",$".") # 显示简单信息和OK键，不返回任何内容
	pass # Replace with function body.



func _on_Button3_pressed():
	myDialog.popupWithPackedScene(load("res://案例/对话框函数案例/子场景/popup_content.tscn"),$".")
	pass # Replace with function body.
